package com.woniu.web.mapper;

import com.woniu.common.entity.TbJpRolePermissionExample;
import com.woniu.common.entity.TbJpRolePermissionKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbJpRolePermissionDao {
    long countByExample(TbJpRolePermissionExample example);

    int deleteByExample(TbJpRolePermissionExample example);

    int deleteByPrimaryKey(TbJpRolePermissionKey key);

    int insert(TbJpRolePermissionKey record);

    int insertSelective(TbJpRolePermissionKey record);

    List<TbJpRolePermissionKey> selectByExample(TbJpRolePermissionExample example);

    int updateByExampleSelective(@Param("record") TbJpRolePermissionKey record, @Param("example") TbJpRolePermissionExample example);

    int updateByExample(@Param("record") TbJpRolePermissionKey record, @Param("example") TbJpRolePermissionExample example);
    void insertRoleAndPermission(List<TbJpRolePermissionKey> list);
}